package com.example.knowman.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.knowman.entity.messageEntity;
import com.example.knowman.entity.staffList;
import com.example.knowman.mapper.MessageEntityMapper;
import com.example.knowman.mapper.StaffListMapper;
import com.example.knowman.service.IMessageService;
import com.example.knowman.service.IStaffListService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;

@Service
public class MessageServiceImpl extends ServiceImpl<MessageEntityMapper, messageEntity> implements IMessageService {

    private final MessageEntityMapper messageEntityMapper;
    public MessageServiceImpl(MessageEntityMapper messageEntityMapper) {
//        this.iTable1Service = iTable1Service;
        this.messageEntityMapper = messageEntityMapper;
    }


    @Override
    public void insert(String operator, String messContent) {
        messageEntity temp = new messageEntity();

        temp.setOperator(operator);
        temp.setMessContent(messContent);
        temp.setType(2);
        this.save(temp);
    }
}
